import axios from "@/http/http.js";
// 封装获取健康信息接口
export const healthRecordFindAPI = (data) => {
    return axios({
        url: '/healthRecord/find',
        method: 'post',
        data,
        headers: { "content-type": "application/x-www-form-urlencoded" }
    })
};

// 封装修改健康信息接口
export const healthRecordUpdateAPI = (data) => {
    return axios({
        url: '/healthRecord/update',
        method: 'put',
        data
    })
};

// 封装通过ID获取居民健康档案接口
export const healthRecordFindByResidentIdAPI = (id) => {
    return axios({
        url: `/healthRecord/findHealthRecordByResidentId/${id}`,
        method: 'post',
    })
};